import '@babel/polyfill'
import Vue from 'vue'

import App from './App.vue'
import router from '@/router/index'
import store from '@/store/index'

import '@/plugins/vcharts'
import '@/plugins/element'
import animated from 'animate.css'
Vue.use(animated)
import '@/assets/styles/Vae.less'
import 'animate.css'
import VaeMap from "@longruan/vae-map";
import "@longruan/vae-map/lib/style.css";

import "@fortawesome/fontawesome-free/css/all.css";

import "./assets/iconfont/iconfont.css";
import request from "@/utils/request"
import { Notification } from 'element-ui'
Vue.use(VaeMap)
import LocalDialog from '@/components/local-dialog'
// 本地全局组件
Vue.use(LocalDialog)
Vue.config.productionTip = false
Vue.prototype.request = request;
let duration = 3000;
Vue.prototype.$info =  function(msg){Notification({title:'消息','message':msg,type:'info',position: 'bottom-right',duration:duration})};
Vue.prototype.$suc =  function(msg){Notification({title:'成功','message':msg,type:'success',position: 'bottom-right',duration:duration})};
Vue.prototype.$warn =  function(msg){Notification({title:'警告','message':msg,type:'warning',position: 'bottom-right',duration:duration})};
Vue.prototype.$err =  function(msg){Notification({title:'错误','message':msg,type:'error',position: 'bottom-right',duration:duration})};

new Vue({
    el: "#app",
    router,
    store,
    render: h => h(App)
})
